<template>
  <div id="recommends">
    <div v-for="item in recommends" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "RecommendView",
    props:{
      recommends: {
        type: Array,
        default(){
          return []
        }
      }
    }

  }
</script>

<style scoped>
  #recommends{
    display: flex;
    font-size: 14px;
    text-align: center;
    /*三个参数：上面 左右 下面*/
    padding: 10px 0 20px;
    /*底部边框：边框厚度  边框线条 边框颜色*/
    border-bottom: 8px solid #eee;
  }

  .recommend-item{
    flex: 1;
  }

  .recommend-item img{
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
</style>
